updating oE join_path

join_path

include filesys.e 
namespace filesys 
public function join_path(sequence path_elements) 

Join multiple path segments into a single path/filename

Parameters:
  • path_elements -- Sequence of path elements
Returns:

A string representing the path elements on the given platform

Example 1:
sequence fname = join_path({ "usr", "home", "john", "hello.txt" }) 
-- fname would be "/usr/home/john/hello.txt" on Unix 
-- fname would be "\\usr\\home\\john\\hello.txt" on Windows 
Versioning:
  • Added in 4.0.1
See Also:

split_path

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu